using System;
using System.Collections.Generic;
using dotnet_graphql_demo.Model;
using HotChocolate.Types;
using HotChocolate;

namespace dotnet_graphql_demo.Infrastructure.Graphql
{
    public class AccuntQuery : ObjectType<Account>
    {
        protected override void Configure(IObjectTypeDescriptor<Account> descriptor)
        {
            //descriptor.Field<>
        }



        //public AccuntQuery([Service] IAccountRepository accountRepository)
        //{
        //    Field<AccountOutput>("accountOutput",
        //        arguments: new QueryArguments(new List<QueryArgument>()
        //            {
        //                new QueryArgument<NonNullGraphType<AccountQoType>> {Name = "accountQo"},
        //            }
        //        ),
        //        resolve: (context) =>
        //        {
                    
        //            List<Account> accounts = new List<Account>();
        //            AccountQoType argument = context.GetArgument<AccountQoType>("accountQo");
        //            if (argument.Id.HasValue)
        //            {
        //            }

        //            return "";
        //        });
        //}
    }
}